Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some titles and get the full sea ice diagnostics working again #162

Merged
merged 9 commits into from
Jan 25, 2025

Conversation

dabail10
Copy link
Collaborator

@dabail10 dabail10 commented Jan 14, 2025

Description of changes:

I have changed the "full" notebook to be just the contour plots. Then coupled_model/config.yml points
to both the _obs_lens and _contour notebooks. I have updated the coupled_model config file to also use the case_name / base_case_name syntax.

@TeaganKing
Copy link
Collaborator

Hi @dabail10 is this ready for review?

@dabail10
Copy link
Collaborator Author

This should be ready for review. I realize the coupled_model/config.yml file is still using the "old" variables. Perhaps I should update this.

Copy link
Collaborator

@mnlevy1981 mnlevy1981 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to modify lines 150 and 160 in the config.yml file -- 150 still uses seaice as the name of the notebook in the compute_notebooks.ice section, and 160 uses nyears instead of climo_nyears when setting parameters for the notebook. (I haven't tried running this yet, but just from looking would expect these to fail.)

@mnlevy1981
Copy link
Collaborator

also, the visual_compare_full notebook is run by both key_metrics and coupled_model examples, right? Do the changes to the ipynb require updates to the key metrics config file?

@dabail10
Copy link
Collaborator Author

Whoops. I had tested with a custom version of config.yml (config_seaice.yml). The compare_obs_lens is run in the key_metrics, while the full is only run in the coupled_model area.

@dabail10
Copy link
Collaborator Author

After talking with @mnlevy1981 I have reworked this PR. Have a look at tell me what you think.

Copy link
Collaborator

@TeaganKing TeaganKing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These notebooks ran for both coupled_model (both notebooks) and key_metrics (just the one notebook). FYI the full notebook had some plots with overlapping titles, but I don't think that's a significant concern.

Screenshot 2025-01-17 at 12 02 57 PM Screenshot 2025-01-17 at 12 02 48 PM

Also note that there are a few other non-related failures in coupled-model (a register_cmap issue in ocean_surface.ipynb, as well as an adf_diag import error. This should be noted in a separate issue (which I will make).

I did just remove the unused imports for pandas and matplotlib.pyplot-- they cause DAG warnings and may confuse users.

All that said, this looks good to me.

@TeaganKing
Copy link
Collaborator

Issue ticket #140 corresponds to comment above

@dabail10
Copy link
Collaborator Author

I have a couple more fixes for the timeseries part.

@TeaganKing
Copy link
Collaborator

Ok, great. Also can you please clear the outputs from your notebooks before committing them?

@dabail10
Copy link
Collaborator Author

Whoops. Working on it.

"hide-input"
]
},
"outputs": [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one still has outputs. The other one looks good.

@dabail10
Copy link
Collaborator Author

I think that has everything.

@TeaganKing
Copy link
Collaborator

Looks much better! This is all good by me! I'll let @mnlevy1981 take one more look since you all discussed together and I want to make sure he's on board with these changes. Otherwise I think this is good to go!

Also, we want to print(client) for both CUPiD and non-CUPiD runs
Copy link
Collaborator

@mnlevy1981 mnlevy1981 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed one small change so --serial still works, this looks great!

@mnlevy1981 mnlevy1981 merged commit 234505c into NCAR:main Jan 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants